package com.myjava.myannotation;

/**
 * @Auther: fant
 * @Date: 2018/9/13 11:38
 * @Description:
 */
public class Persion {
    @CheckString(exists = Exists.Required)
    public String test;
    @CheckString(exists = Exists.Required)
    private String name;
    @CheckString(exists = Exists.Required)
    private String password;
    private String sex;
    private int age;

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Persion [name=" + name + ", password=" + password + ", sex=" + sex + ", age=" + age + ", test=" + test + "]";
    }

    public Persion(String name, String password) {
        super();
        this.name = name;
        this.password = password;
    }


}